﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ComicBookApp.DataModels
{
    /// <summary>
    /// Class for holding character information
    /// Holds an ComicBookId to indicate which comic it is associated with
    /// </summary>
    public class Character
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Bio { get; set; }
        public string ImageUrl { get; set; }
        public int ComicBookId { get; set; }

        public virtual ComicBook ComicBook { get; set; }

        public Character() { }

        public Character(string name, string bio, string imageUrl, int comicBookId)
        {
            Name = name;
            Bio = bio;
            ImageUrl = imageUrl;
            ComicBookId = comicBookId;
        }

        public void SetProperties(Character character)
        {
            this.Name = character.Name;
            this.Bio = character.Bio;
            this.ImageUrl = character.ImageUrl;
        }

    }
}
